init

fun init(ctxt: Context)(source)
fun init(ctxt: Context, debug: Boolean)(source)

Initialize CouchbaseLite library. Unlike the Couchbase Lite Android SDK, this method is optional to call before using CouchbaseLite. The single-parameter CouchbaseLite.init(Context) will be called automatically by androidx-startup.


fun init(ctxt: Context, debug: Boolean, rootDbDir: File, scratchDir: File)(source)

Initialize CouchbaseLite library. This method allows specifying a root directory for CBL files. Use this version with great caution.

Parameters

ctxt

Application context

debug

true if debugging

rootDbDir

default directory for databases

scratchDir

scratch directory for SQLite